package com.jjb.spider.mqtt.model;

import io.netty.handler.codec.mqtt.MqttQoS;

import java.util.Collection;

public class QueueMessage {

    private String deviceId;
    private String topicName;

    private int qosLevel;

    private int messageId;

    private byte[] bytes;

    private Integer packetId;

    private Boolean isDup;

    private Boolean isRetain;

    private Collection<String> deviceIds;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public int getQosLevel() {
        return qosLevel;
    }

    public void setQosLevel(int qosLevel) {
        this.qosLevel = qosLevel;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    public Integer getPacketId() {
        return packetId;
    }

    public void setPacketId(Integer packetId) {
        this.packetId = packetId;
    }

    public Boolean getDup() {
        return isDup;
    }

    public void setDup(Boolean dup) {
        isDup = dup;
    }

    public Boolean getRetain() {
        return isRetain;
    }

    public void setRetain(Boolean retain) {
        isRetain = retain;
    }

    public Collection<String> getDeviceIds() {
        return deviceIds;
    }

    public void setDeviceIds(Collection<String> deviceIds) {
        this.deviceIds = deviceIds;
    }
}
